<%@ Page Language="C#" EnableViewState="false" ValidateRequest="false" AutoEventWireup="true" Inherits="Syrinx.Gui.AspNet.Nitobi2.NitobiBasePage" 
	MasterPageFile="~/App_ThemeMasters/NoStyle/SimplePrintPreviewLayout.Master" %>
<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
<%@ Register Assembly="ScsAspNet" Namespace="Syrinx.Gui.AspNet.Nitobi2" TagPrefix="snc" %><%@ Register Assembly="NitobiControls" Namespace="Nitobi" TagPrefix="ntb" %>
<%@ Register Assembly="ScsAspNet" Namespace="Articles.Gui.AspNet" TagPrefix="art" %>

<script runat="server">
	public bool PreloadFreeTextBox = false;
	public string TitleFormat = "Sales Order: $order.seqNumber$ - $order.orderContact.fullName$";
	protected override void OnLoad(EventArgs e)
	{
		base.m_usingAjax = false;
		base.OnLoad(e);
	}
</script>

<asp:Content id="z2" ContentPlaceHolderID="logoArea" runat="server">
	<art:StandAloneArticleListDisplay runat="server" ID="lgo" PID="MainLogo"
		BoxSkinId="MainLogo" ListTemplate="MainLogo-Style1" />
</asp:Content>

<asp:Content ContentPlaceHolderID="mainContent" runat="server" ID="c2">
<swf:BizProc ID="order" runat="server" FactoryName="eComSalesOrderMngt">
</swf:BizProc>
<swf:BizProc ID="orderItemBP" runat="server" FactoryName="eComSalesOrderItems">
	<State  entireTree="false"  EditModeSessionKey="GlobalEdit" baseListFieldNameforMaster="product" masterDataDisplay="blOnly"/>
	<ParentBizProc id="order" fieldName="id" dataId="pid" />
</swf:BizProc>
<swf:BizProc ID="orderResBP" runat="server" FactoryName="reservationWizard">
	<ParentBizProc id="order" fullDependency="true" fieldName="reservation" dataId="current" />
</swf:BizProc>
<swf:BizProc ID="contactBP" runat="server" FactoryName="contactBizProc" >
	<ParentBizProc id="order" fieldName="orderContact.id" dataId="id" />
</swf:BizProc>

<table class="pageWidth SalesOrderTable">
	<tr><td valign="top">
		<h3><asp:Label runat="server" ID="_resInf">Reservation Details</asp:Label></h3>		
		<snc:NitobiBizObjDisplay ID="od" runat="server" 
			ReadOnlyTemplate="eCom.Gui.AspNet.SalesOrderHeaderDisplay" 
			ParentBizProcIds="order" />
		<div style="height:20px;"></div>
		<snc:NitobiBizObjDisplay runat="server" ID="orsd1" 
			EditableTemplate="Reservations.Gui.AspNet.ReservationRODisplay" ParentBizProcIds="orderResBP" />				
		<snc:NitobiBizObjDisplay runat="server" ID="orsd2" 
			EditableTemplate="Reservations.Gui.AspNet.ReservationSpecialRequirementsRODisplay" ParentBizProcIds="orderResBP" />
	</td><td valign="top">				
		<h3><asp:Label runat="server" ID="_resContLbl">Primary Contact</asp:Label></h3>		
		<snc:NitobiBizObjDisplay ID="contactDisplay" runat="server" 
		ReadOnlyTemplate="Contacts.Gui.AspNet.ContactDetailRODisplay-Simple"
		ParentBizProcIds="contactBP" />
	</td><td valign="top">
		<h3><asp:Label runat="server" ID="Label1">Flight Information</asp:Label></h3>
		<snc:NitobiBizObjDisplay runat="server" ID="orsd3" 
		EditableTemplate="Reservations.Gui.AspNet.FlightInfoRODisplay" ParentBizProcIds="orderResBP" />
	</td></tr>
</table>

<div class="OrderItemArea">
	<snc:ComplexBizObjListDisplay runat="server" ID="products"
		ReadOnlyTemplate="eCom.Gui.AspNet.SOItemsListDisplay-ProductStyle4"
		ParentBizProcIds="orderItemBP" />
	<snc:NitobiBizObjDisplay ID="soli" runat="server" 
		ReadOnlyTemplate="eCom.Gui.AspNet.SalesOrderLineItemFooterDisplay" 
		ParentBizProcIds="order" />
</div>
    
<art:StandAloneArticleListDisplay runat="server" ID="A3" PID="CheckoutPolicy" DetailLevel="fullDetails"
 ListTemplate="WithBody" />
 
</asp:Content>
